import axios from "../../utils/request";

export default {
  //查看机构
  getDataList(data) {
    return axios({
      url: '/dev-api/institute/search',
      method: 'get',
      params: data,
    })
  },
  //查看现有机构类型
  getOrganizationType() {
    return axios({
      url: '/dev-api/institute/search/type',
      method: 'get',
    })
  },
  //查看机构全部医生
  getOrganizationDoctor() {
    return axios({
      url: '/dev-api/instituteUser/selectAll',
      method: 'get',
    })
  },
  getuserInfo() {
    return axios({
      url: '/dev-api/instituteUser/select',
      method: 'get',
    })
  },
  // 批量导入（excel）
  excelAdd(data) {
    return axios({
      url: '/dev-api/instituteUser/insertByExcel',
      method: 'post',
      data,
      headers: {
        'Content-Type': 'multipart/form-data'
      }
    })
  },


}